<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/4/10 0010
 * Time: 下午 11:46
 */

namespace Admin\Controller;


use Think\Controller;

class TestController extends BaseController{
    /**
     * 用于练习
     */

//    public function index(){
//        //实例化模型
//        $model = D('brand');
////        $data['id'] = 1;
////        $data['name'] = '小红';
////        $map['id']  = array('between','1,3');
////        $map['id|name'] = '1';
////        $rows = $model->getFieldByName('联想','id');
//        dump($model->getLastSql());
//    }
    
    public function index(){
  echo 'this is Index/index';
}
    public function add(){
  echo 'this is Index/add';
}

}

  $i = new TestController();
     $i->add();